<%-- 
    Document   : ModificarDocumento
    Created on : Nov 21, 2011, 5:01:54 PM
    Author     : elio
--%>

<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<!DOCTYPE html>
<logic:notPresent name="docBean" scope="session">
    <logic:redirect forward="failure" />
</logic:notPresent>
<html:html>
    <head>
        <title><bean:message key="alterar.title"/></title>
        <link rel="stylesheet" type="text/css" href="styles.css"/>
    </head>
    <body>
        <h1><bean:message key="alterar.heading"/></h1>

        <html:form action="/alterar" method="post" enctype="multipart/form-data">
            <html:hidden property="id" name="docBean" />
            <table border="0">
                <tbody>
                   <tr>
                        <td><bean:message key="doc.description"/></td>
                        <td><html:text property="descricao" name="docBean" /></td>
                    </tr>
                    <tr>
                        <td><bean:message key="doc.type"/></td>
                        <td><html:text property="tipo" name="docBean" /></td>
                    </tr>
                     <tr>
                        <td><bean:message key="doc.revision"/></td>
                        <td><html:text property="numRevisao" name="docBean"/></td>
                    </tr>
                    <tr>
                        <td><bean:message key="doc.file"/></td>
                        <td>
                            <html:file property="theFile"/> 
                        </td>
                    </tr>

                    <tr>
                        <td></td>
                       <td><html:submit><bean:message key="prompt.update"/></html:submit> </td>
                    </tr>
                </tbody>
            </table>

        </html:form>
    </body>
</html:html>